package com.sdry.entity;

import java.util.ArrayList;
import java.util.List;

public class GoDownDetailExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public GoDownDetailExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andWarehoidIsNull() {
            addCriterion("warehoid is null");
            return (Criteria) this;
        }

        public Criteria andWarehoidIsNotNull() {
            addCriterion("warehoid is not null");
            return (Criteria) this;
        }

        public Criteria andWarehoidEqualTo(Long value) {
            addCriterion("warehoid =", value, "warehoid");
            return (Criteria) this;
        }

        public Criteria andWarehoidNotEqualTo(Long value) {
            addCriterion("warehoid <>", value, "warehoid");
            return (Criteria) this;
        }

        public Criteria andWarehoidGreaterThan(Long value) {
            addCriterion("warehoid >", value, "warehoid");
            return (Criteria) this;
        }

        public Criteria andWarehoidGreaterThanOrEqualTo(Long value) {
            addCriterion("warehoid >=", value, "warehoid");
            return (Criteria) this;
        }

        public Criteria andWarehoidLessThan(Long value) {
            addCriterion("warehoid <", value, "warehoid");
            return (Criteria) this;
        }

        public Criteria andWarehoidLessThanOrEqualTo(Long value) {
            addCriterion("warehoid <=", value, "warehoid");
            return (Criteria) this;
        }

        public Criteria andWarehoidIn(List<Long> values) {
            addCriterion("warehoid in", values, "warehoid");
            return (Criteria) this;
        }

        public Criteria andWarehoidNotIn(List<Long> values) {
            addCriterion("warehoid not in", values, "warehoid");
            return (Criteria) this;
        }

        public Criteria andWarehoidBetween(Long value1, Long value2) {
            addCriterion("warehoid between", value1, value2, "warehoid");
            return (Criteria) this;
        }

        public Criteria andWarehoidNotBetween(Long value1, Long value2) {
            addCriterion("warehoid not between", value1, value2, "warehoid");
            return (Criteria) this;
        }

        public Criteria andWgodownidIsNull() {
            addCriterion("wgodownid is null");
            return (Criteria) this;
        }

        public Criteria andWgodownidIsNotNull() {
            addCriterion("wgodownid is not null");
            return (Criteria) this;
        }

        public Criteria andWgodownidEqualTo(Long value) {
            addCriterion("wgodownid =", value, "wgodownid");
            return (Criteria) this;
        }

        public Criteria andWgodownidNotEqualTo(Long value) {
            addCriterion("wgodownid <>", value, "wgodownid");
            return (Criteria) this;
        }

        public Criteria andWgodownidGreaterThan(Long value) {
            addCriterion("wgodownid >", value, "wgodownid");
            return (Criteria) this;
        }

        public Criteria andWgodownidGreaterThanOrEqualTo(Long value) {
            addCriterion("wgodownid >=", value, "wgodownid");
            return (Criteria) this;
        }

        public Criteria andWgodownidLessThan(Long value) {
            addCriterion("wgodownid <", value, "wgodownid");
            return (Criteria) this;
        }

        public Criteria andWgodownidLessThanOrEqualTo(Long value) {
            addCriterion("wgodownid <=", value, "wgodownid");
            return (Criteria) this;
        }

        public Criteria andWgodownidIn(List<Long> values) {
            addCriterion("wgodownid in", values, "wgodownid");
            return (Criteria) this;
        }

        public Criteria andWgodownidNotIn(List<Long> values) {
            addCriterion("wgodownid not in", values, "wgodownid");
            return (Criteria) this;
        }

        public Criteria andWgodownidBetween(Long value1, Long value2) {
            addCriterion("wgodownid between", value1, value2, "wgodownid");
            return (Criteria) this;
        }

        public Criteria andWgodownidNotBetween(Long value1, Long value2) {
            addCriterion("wgodownid not between", value1, value2, "wgodownid");
            return (Criteria) this;
        }

        public Criteria andInfoidIsNull() {
            addCriterion("infoid is null");
            return (Criteria) this;
        }

        public Criteria andInfoidIsNotNull() {
            addCriterion("infoid is not null");
            return (Criteria) this;
        }

        public Criteria andInfoidEqualTo(Long value) {
            addCriterion("infoid =", value, "infoid");
            return (Criteria) this;
        }

        public Criteria andInfoidNotEqualTo(Long value) {
            addCriterion("infoid <>", value, "infoid");
            return (Criteria) this;
        }

        public Criteria andInfoidGreaterThan(Long value) {
            addCriterion("infoid >", value, "infoid");
            return (Criteria) this;
        }

        public Criteria andInfoidGreaterThanOrEqualTo(Long value) {
            addCriterion("infoid >=", value, "infoid");
            return (Criteria) this;
        }

        public Criteria andInfoidLessThan(Long value) {
            addCriterion("infoid <", value, "infoid");
            return (Criteria) this;
        }

        public Criteria andInfoidLessThanOrEqualTo(Long value) {
            addCriterion("infoid <=", value, "infoid");
            return (Criteria) this;
        }

        public Criteria andInfoidIn(List<Long> values) {
            addCriterion("infoid in", values, "infoid");
            return (Criteria) this;
        }

        public Criteria andInfoidNotIn(List<Long> values) {
            addCriterion("infoid not in", values, "infoid");
            return (Criteria) this;
        }

        public Criteria andInfoidBetween(Long value1, Long value2) {
            addCriterion("infoid between", value1, value2, "infoid");
            return (Criteria) this;
        }

        public Criteria andInfoidNotBetween(Long value1, Long value2) {
            addCriterion("infoid not between", value1, value2, "infoid");
            return (Criteria) this;
        }

        public Criteria andCondeIsNull() {
            addCriterion("conde is null");
            return (Criteria) this;
        }

        public Criteria andCondeIsNotNull() {
            addCriterion("conde is not null");
            return (Criteria) this;
        }

        public Criteria andCondeEqualTo(String value) {
            addCriterion("conde =", value, "conde");
            return (Criteria) this;
        }

        public Criteria andCondeNotEqualTo(String value) {
            addCriterion("conde <>", value, "conde");
            return (Criteria) this;
        }

        public Criteria andCondeGreaterThan(String value) {
            addCriterion("conde >", value, "conde");
            return (Criteria) this;
        }

        public Criteria andCondeGreaterThanOrEqualTo(String value) {
            addCriterion("conde >=", value, "conde");
            return (Criteria) this;
        }

        public Criteria andCondeLessThan(String value) {
            addCriterion("conde <", value, "conde");
            return (Criteria) this;
        }

        public Criteria andCondeLessThanOrEqualTo(String value) {
            addCriterion("conde <=", value, "conde");
            return (Criteria) this;
        }

        public Criteria andCondeLike(String value) {
            addCriterion("conde like", value, "conde");
            return (Criteria) this;
        }

        public Criteria andCondeNotLike(String value) {
            addCriterion("conde not like", value, "conde");
            return (Criteria) this;
        }

        public Criteria andCondeIn(List<String> values) {
            addCriterion("conde in", values, "conde");
            return (Criteria) this;
        }

        public Criteria andCondeNotIn(List<String> values) {
            addCriterion("conde not in", values, "conde");
            return (Criteria) this;
        }

        public Criteria andCondeBetween(String value1, String value2) {
            addCriterion("conde between", value1, value2, "conde");
            return (Criteria) this;
        }

        public Criteria andCondeNotBetween(String value1, String value2) {
            addCriterion("conde not between", value1, value2, "conde");
            return (Criteria) this;
        }

        public Criteria andGremark1IsNull() {
            addCriterion("gremark1 is null");
            return (Criteria) this;
        }

        public Criteria andGremark1IsNotNull() {
            addCriterion("gremark1 is not null");
            return (Criteria) this;
        }

        public Criteria andGremark1EqualTo(String value) {
            addCriterion("gremark1 =", value, "gremark1");
            return (Criteria) this;
        }

        public Criteria andGremark1NotEqualTo(String value) {
            addCriterion("gremark1 <>", value, "gremark1");
            return (Criteria) this;
        }

        public Criteria andGremark1GreaterThan(String value) {
            addCriterion("gremark1 >", value, "gremark1");
            return (Criteria) this;
        }

        public Criteria andGremark1GreaterThanOrEqualTo(String value) {
            addCriterion("gremark1 >=", value, "gremark1");
            return (Criteria) this;
        }

        public Criteria andGremark1LessThan(String value) {
            addCriterion("gremark1 <", value, "gremark1");
            return (Criteria) this;
        }

        public Criteria andGremark1LessThanOrEqualTo(String value) {
            addCriterion("gremark1 <=", value, "gremark1");
            return (Criteria) this;
        }

        public Criteria andGremark1Like(String value) {
            addCriterion("gremark1 like", value, "gremark1");
            return (Criteria) this;
        }

        public Criteria andGremark1NotLike(String value) {
            addCriterion("gremark1 not like", value, "gremark1");
            return (Criteria) this;
        }

        public Criteria andGremark1In(List<String> values) {
            addCriterion("gremark1 in", values, "gremark1");
            return (Criteria) this;
        }

        public Criteria andGremark1NotIn(List<String> values) {
            addCriterion("gremark1 not in", values, "gremark1");
            return (Criteria) this;
        }

        public Criteria andGremark1Between(String value1, String value2) {
            addCriterion("gremark1 between", value1, value2, "gremark1");
            return (Criteria) this;
        }

        public Criteria andGremark1NotBetween(String value1, String value2) {
            addCriterion("gremark1 not between", value1, value2, "gremark1");
            return (Criteria) this;
        }

        public Criteria andGremark2IsNull() {
            addCriterion("gremark2 is null");
            return (Criteria) this;
        }

        public Criteria andGremark2IsNotNull() {
            addCriterion("gremark2 is not null");
            return (Criteria) this;
        }

        public Criteria andGremark2EqualTo(String value) {
            addCriterion("gremark2 =", value, "gremark2");
            return (Criteria) this;
        }

        public Criteria andGremark2NotEqualTo(String value) {
            addCriterion("gremark2 <>", value, "gremark2");
            return (Criteria) this;
        }

        public Criteria andGremark2GreaterThan(String value) {
            addCriterion("gremark2 >", value, "gremark2");
            return (Criteria) this;
        }

        public Criteria andGremark2GreaterThanOrEqualTo(String value) {
            addCriterion("gremark2 >=", value, "gremark2");
            return (Criteria) this;
        }

        public Criteria andGremark2LessThan(String value) {
            addCriterion("gremark2 <", value, "gremark2");
            return (Criteria) this;
        }

        public Criteria andGremark2LessThanOrEqualTo(String value) {
            addCriterion("gremark2 <=", value, "gremark2");
            return (Criteria) this;
        }

        public Criteria andGremark2Like(String value) {
            addCriterion("gremark2 like", value, "gremark2");
            return (Criteria) this;
        }

        public Criteria andGremark2NotLike(String value) {
            addCriterion("gremark2 not like", value, "gremark2");
            return (Criteria) this;
        }

        public Criteria andGremark2In(List<String> values) {
            addCriterion("gremark2 in", values, "gremark2");
            return (Criteria) this;
        }

        public Criteria andGremark2NotIn(List<String> values) {
            addCriterion("gremark2 not in", values, "gremark2");
            return (Criteria) this;
        }

        public Criteria andGremark2Between(String value1, String value2) {
            addCriterion("gremark2 between", value1, value2, "gremark2");
            return (Criteria) this;
        }

        public Criteria andGremark2NotBetween(String value1, String value2) {
            addCriterion("gremark2 not between", value1, value2, "gremark2");
            return (Criteria) this;
        }

        public Criteria andGremark3IsNull() {
            addCriterion("gremark3 is null");
            return (Criteria) this;
        }

        public Criteria andGremark3IsNotNull() {
            addCriterion("gremark3 is not null");
            return (Criteria) this;
        }

        public Criteria andGremark3EqualTo(String value) {
            addCriterion("gremark3 =", value, "gremark3");
            return (Criteria) this;
        }

        public Criteria andGremark3NotEqualTo(String value) {
            addCriterion("gremark3 <>", value, "gremark3");
            return (Criteria) this;
        }

        public Criteria andGremark3GreaterThan(String value) {
            addCriterion("gremark3 >", value, "gremark3");
            return (Criteria) this;
        }

        public Criteria andGremark3GreaterThanOrEqualTo(String value) {
            addCriterion("gremark3 >=", value, "gremark3");
            return (Criteria) this;
        }

        public Criteria andGremark3LessThan(String value) {
            addCriterion("gremark3 <", value, "gremark3");
            return (Criteria) this;
        }

        public Criteria andGremark3LessThanOrEqualTo(String value) {
            addCriterion("gremark3 <=", value, "gremark3");
            return (Criteria) this;
        }

        public Criteria andGremark3Like(String value) {
            addCriterion("gremark3 like", value, "gremark3");
            return (Criteria) this;
        }

        public Criteria andGremark3NotLike(String value) {
            addCriterion("gremark3 not like", value, "gremark3");
            return (Criteria) this;
        }

        public Criteria andGremark3In(List<String> values) {
            addCriterion("gremark3 in", values, "gremark3");
            return (Criteria) this;
        }

        public Criteria andGremark3NotIn(List<String> values) {
            addCriterion("gremark3 not in", values, "gremark3");
            return (Criteria) this;
        }

        public Criteria andGremark3Between(String value1, String value2) {
            addCriterion("gremark3 between", value1, value2, "gremark3");
            return (Criteria) this;
        }

        public Criteria andGremark3NotBetween(String value1, String value2) {
            addCriterion("gremark3 not between", value1, value2, "gremark3");
            return (Criteria) this;
        }

        public Criteria andGremark4IsNull() {
            addCriterion("gremark4 is null");
            return (Criteria) this;
        }

        public Criteria andGremark4IsNotNull() {
            addCriterion("gremark4 is not null");
            return (Criteria) this;
        }

        public Criteria andGremark4EqualTo(String value) {
            addCriterion("gremark4 =", value, "gremark4");
            return (Criteria) this;
        }

        public Criteria andGremark4NotEqualTo(String value) {
            addCriterion("gremark4 <>", value, "gremark4");
            return (Criteria) this;
        }

        public Criteria andGremark4GreaterThan(String value) {
            addCriterion("gremark4 >", value, "gremark4");
            return (Criteria) this;
        }

        public Criteria andGremark4GreaterThanOrEqualTo(String value) {
            addCriterion("gremark4 >=", value, "gremark4");
            return (Criteria) this;
        }

        public Criteria andGremark4LessThan(String value) {
            addCriterion("gremark4 <", value, "gremark4");
            return (Criteria) this;
        }

        public Criteria andGremark4LessThanOrEqualTo(String value) {
            addCriterion("gremark4 <=", value, "gremark4");
            return (Criteria) this;
        }

        public Criteria andGremark4Like(String value) {
            addCriterion("gremark4 like", value, "gremark4");
            return (Criteria) this;
        }

        public Criteria andGremark4NotLike(String value) {
            addCriterion("gremark4 not like", value, "gremark4");
            return (Criteria) this;
        }

        public Criteria andGremark4In(List<String> values) {
            addCriterion("gremark4 in", values, "gremark4");
            return (Criteria) this;
        }

        public Criteria andGremark4NotIn(List<String> values) {
            addCriterion("gremark4 not in", values, "gremark4");
            return (Criteria) this;
        }

        public Criteria andGremark4Between(String value1, String value2) {
            addCriterion("gremark4 between", value1, value2, "gremark4");
            return (Criteria) this;
        }

        public Criteria andGremark4NotBetween(String value1, String value2) {
            addCriterion("gremark4 not between", value1, value2, "gremark4");
            return (Criteria) this;
        }

        public Criteria andGremark5IsNull() {
            addCriterion("gremark5 is null");
            return (Criteria) this;
        }

        public Criteria andGremark5IsNotNull() {
            addCriterion("gremark5 is not null");
            return (Criteria) this;
        }

        public Criteria andGremark5EqualTo(String value) {
            addCriterion("gremark5 =", value, "gremark5");
            return (Criteria) this;
        }

        public Criteria andGremark5NotEqualTo(String value) {
            addCriterion("gremark5 <>", value, "gremark5");
            return (Criteria) this;
        }

        public Criteria andGremark5GreaterThan(String value) {
            addCriterion("gremark5 >", value, "gremark5");
            return (Criteria) this;
        }

        public Criteria andGremark5GreaterThanOrEqualTo(String value) {
            addCriterion("gremark5 >=", value, "gremark5");
            return (Criteria) this;
        }

        public Criteria andGremark5LessThan(String value) {
            addCriterion("gremark5 <", value, "gremark5");
            return (Criteria) this;
        }

        public Criteria andGremark5LessThanOrEqualTo(String value) {
            addCriterion("gremark5 <=", value, "gremark5");
            return (Criteria) this;
        }

        public Criteria andGremark5Like(String value) {
            addCriterion("gremark5 like", value, "gremark5");
            return (Criteria) this;
        }

        public Criteria andGremark5NotLike(String value) {
            addCriterion("gremark5 not like", value, "gremark5");
            return (Criteria) this;
        }

        public Criteria andGremark5In(List<String> values) {
            addCriterion("gremark5 in", values, "gremark5");
            return (Criteria) this;
        }

        public Criteria andGremark5NotIn(List<String> values) {
            addCriterion("gremark5 not in", values, "gremark5");
            return (Criteria) this;
        }

        public Criteria andGremark5Between(String value1, String value2) {
            addCriterion("gremark5 between", value1, value2, "gremark5");
            return (Criteria) this;
        }

        public Criteria andGremark5NotBetween(String value1, String value2) {
            addCriterion("gremark5 not between", value1, value2, "gremark5");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}